package com.sgb.kjwl.model.entity.packers;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: 王彬臣
 * @date: 2021/9/8
 * @Description: 在线联系人实体
 */
public class OnLineEntity {

    /**
     * companyName : 天阙集团
     * child : [{"departmentName":"客服","onlineConcat":[{"id":"5ff41bf976dcff000180f648","name":"客服"}],"size":1},{"departmentName":"测试","onlineConcat":[{"id":"600e2e4b968b7d00015dd9d6","name":"飞享"},{"id":"603f56a2e8edc4000153a282","name":"苟婷婷"},{"id":"603f5f31e8edc4000153a287","name":"蒲小天"},{"id":"609df62d09358500010e6d06","name":"熊丽"}],"size":4},{"departmentName":"其他","onlineConcat":[{"id":"5fec40932f715e0001cad77c","name":"蒲小天"},{"id":"609df62d09358500010e6d06","name":"熊丽"}],"size":2}]
     */

    private String companyName;
    /**
     * departmentName : 客服
     * onlineConcat : [{"id":"5ff41bf976dcff000180f648","name":"客服"}]
     * size : 1
     */

    private List<ChildBean> child;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public List<ChildBean> getChild() {
        return child;
    }

    public void setChild(List<ChildBean> child) {
        this.child = child;
    }

    public static class ChildBean {
        private String departmentName;
        private int size;
        private String departmentId;


        /**
         * id : 5ff41bf976dcff000180f648
         * name : 客服
         */

        private List<OnlineConcatBean> onlineConcat;

        public String getDepartmentId() {
            return departmentId;
        }

        public void setDepartmentId(String departmentId) {
            this.departmentId = departmentId;
        }

        public String getDepartmentName() {
            return departmentName;
        }

        public void setDepartmentName(String departmentName) {
            this.departmentName = departmentName;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public List<OnlineConcatBean> getOnlineConcat() {
            return onlineConcat != null ? onlineConcat : new ArrayList<>();
        }

        public void setOnlineConcat(List<OnlineConcatBean> onlineConcat) {
            this.onlineConcat = onlineConcat;
        }

        public static class OnlineConcatBean {
            private String id;
            private String name;
            public boolean isSelect;

            public boolean isSelect() {
                return isSelect;
            }

            public void setSelect(boolean select) {
                isSelect = select;
            }
            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
}
